str = '{"code": "true","response": {"desc": "周五上午10点团建","time": "周五上午10点"}}<|im_end|>';

str = str.replace("<|im_end|>", "", 2)
print(str)